package com.ywu.data.source.standard.source.field.impl;

import com.ywu.data.source.standard.dto.YwuDataTableFieldDto;
import com.ywu.data.source.standard.entity.YwuDataTableEntity;
import com.ywu.data.source.standard.source.field.YwuDataSourceFieldSqlBuild;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @ClassName YwuBuildFieldNameSql
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/10/28 18:48
 * @Version 1.0
 **/
@Component
@Order(1)
@Slf4j
public class YwuBuildFieldNameSql implements YwuDataSourceFieldSqlBuild {

    @Override
    public String buildSql(YwuDataTableEntity ywuDataTableEntity, YwuDataTableFieldDto ywuDataTableFieldDto) {
        return String.format("`%s` ", ywuDataTableFieldDto.getName());
    }
}
